﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HarveyNash.RefactoringAndCodeSmell.Refactoring.ConsolidateConditionalFragments
{
    public class Before
    {
        public bool CandidateRejected(TestResult result)
        {
            if (result.IQScore < 100)
                return true;
            if (result.EnglishScore < 2)
                return true;
            if (result.TechnicalScore < 3)
                return true;
            if (result.IQScore > 120 && (result.EnglishScore * 2 + result.TechnicalScore) / 3 >= 5)
                return false;            
            return true;
        }
    }
}
